# Project: DOSAdventure2
# Makefile created by Dev-C++ 4.9.9.2

CXX=g++
CXXFLAGS=-Wall 
SOURCES=battle.cpp  board.cpp  board-player.cpp  character.cpp  game.cpp  gem.cpp  legacycode.cpp  main.cpp  miscfunctions.cpp  monster.cpp  terrain.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=ConsoleAdventure2

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CXX) -o $@ $(OBJECTS)

clean:
	rm -f $(OBJECTS) $(EXECUTABLE)

.cpp.o:
	$(CXX) $(CXXFLAGS) -c -o $@ $<